﻿using System;
using System.ComponentModel.DataAnnotations;

namespace MiniWeb.Web.Controllers.Admin.AdConfigManager.ViewModels
{
    public class SaveAdConfig
    {

        public int? ID { get; set; }

        [Display(Name = "广告图片")]
        public string ImgPath { get; set; }

        [Display(Name = "标题"), Required(ErrorMessage = "请输入！")]
        public string Title { get; set; }

        [Display(Name = "排序"), Required(ErrorMessage = "请输入！")]
        public int Sort { get; set; }

     
        [Display(Name = "跳转链接")]
        public string LinkUrl { get; set; }

        [Display(Name = "所属位置"), Required(ErrorMessage = "请输入！")]
        public int Position { get; set; }




    }
}